home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 February
/
PCWorld_2000-02_cd.bin
/
Komunik
/
Webscr
/
HTMLtool
/
_SETUP.1
/
Scrolling Statusbar.scp
< prev
next >
Wrap
Text File
|
1999-09-29
|
1KB
|
50 lines
<HTMLtool>Scrolling text in the statusbar (Place in the HEAD tag)</HTMLtool>
<!-- Remember to modify the BODY tag below -->
<SCRIPT LANGUAGE="JavaScript">
<-- Hide script from older browsers!
function scrollit_r2l(seed)
{
//
// Var m1,m2,m3,m4 can be filled with text of your choice
//
var m1 = "";
var m2 = "";
var m3 = "";
var m4 = "";
var msg=m1+m2+m3+m4;
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
var cmd="scrollit_r2l(" + seed + ")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
var cmd="scrollit_r2l(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
var cmd="scrollit_r2l(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scrollit_r2l(100)",75);
}
}
}
</SCRIPT>
end of hiding for older browsers -->
<BODY onLoad="timerONE=window.setTimeout('scrollit_r2l(100)',500);">